<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class VerPelicula extends CI_Controller {
	
	public function index($id=0){
		$data['titulo']="Peliculas";
		$this->load->model('pelicula_modelo');
		$pelicula=$this->pelicula_modelo->ObtenerPelicula($id);
		$pelis=$this->pelicula_modelo->ListarPeliculaGeneroCarrusel($pelicula[0]->genero,18,0);
		$data['pelis']=$pelis;
		$data['pelicula']=$pelicula[0];
		$data['session_user'] = $this->session->userdata('session_user');
		$this->load->view('ver_pelicula.php',$data);
	}

}
